from .models import Skill
from .serializers import SkillModelSerializer, SkillCreateUpdateSerializer
from dvadmin.utils.viewset import CustomModelViewSet


class SkillViewSet(CustomModelViewSet):
    """
    list:查询
    create:新增
    update:修改
    retrieve:单例
    destroy:删除
    """
    queryset = Skill.objects.all()
    serializer_class = SkillModelSerializer
    create_serializer_class = SkillCreateUpdateSerializer
    update_serializer_class = SkillCreateUpdateSerializer
    filter_fields = []
    search_fields = []
